package cn.demographic.dao;

import java.util.List;

import cn.demographic.entity.Family;
import cn.demographic.entity.User;

public interface FamilyMapper {
	/**
	 * 通过userId查询同住家庭成员信息
	 * @param user
	 * @return
	 */
	List<Family> findFamily(User user);
	
    int deleteByPrimaryKey(Integer withId);

    int insert(Family record);

    int insertSelective(Family record);

    Family selectByPrimaryKey(Integer withId);

    int updateByPrimaryKeySelective(Family record);

    int updateByPrimaryKey(Family record);
    
  
	/**
	 * 添加同住家庭
	 * @param family
	 * @return
	 */
    int insertFamily(Family family);
    
    /**
	 * 修改同住家庭
	 * @param record
	 * @return
	 */
    int updateFamily(Family record);
}